package edu.xidian.bdilab.jrbigdata.service.bank.login.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import edu.xidian.bdilab.jrbigdata.domain.BankInfo;
import edu.xidian.bdilab.jrbigdata.mapper.BankInfoMapper;
import edu.xidian.bdilab.jrbigdata.service.bank.login.CheckInfoById;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName CheckInfoByIdImpl
 * @Description TODO
 * @Author tuantuan
 * @Date 2019/4/17 下午8:31
 * @Version 1.0
 * @Attention Copyright (C), 2004-2019, BDILab, XiDian University
 **/
@Service
public class CheckInfoByIdImpl implements CheckInfoById {
    @Autowired
    BankInfoMapper bankInfoMapper;
    @Override
    public BankInfo checkInfoByUserName(String userName) {
        QueryWrapper<BankInfo> bankInfoQueryWrapper= new QueryWrapper<>();
        bankInfoQueryWrapper.eq("fk_user_name", userName);
        return bankInfoMapper.selectOne(bankInfoQueryWrapper);
    }
}
